package cn.sciento.transfer.infra.feign.fallback;

import cn.sciento.transfer.api.dto.DatasourceDTO;
import cn.sciento.transfer.infra.feign.HpfmRemoteService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class HpfmRemoteServiceFallbackImpl implements HpfmRemoteService {
  private final Logger logger = LoggerFactory.getLogger(HpfmRemoteServiceFallbackImpl.class);
  
  @Override
  public String getProfileValueByProfileName(String profileName) {
    this.logger.error("can not get profile from stong platform by name {}", profileName);
    return null;
  }
  
  public DatasourceDTO detail(Long organizationId, Long datasourceId) {
    this.logger.error("can not get datasource from stong platform by id {}", datasourceId);
    return null;
  }
}
